﻿<Window x:Class="G19Glower.App.SettingsWindow"
        x:ClassModifier="internal"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        mc:Ignorable="d" 
        Title="G19 Glower Settings"
        Height="470" MinHeight="470"
        Width="450" MinWidth="450"
        Icon="/Something.ico">
    <Grid Background="#FFF0F0F0">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TabControl x:Name="SettingsTabControl" Margin="3,3,3,0">
            <TabItem Header="Glowies">
                <Grid>
                    <ListView x:Name="GlowiesListView">
                        <ListView.View>
                            <GridView>
                                <GridView.Columns>
                                    <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Path=Title}" Width="100" />
                                    <GridViewColumn Header="Description" DisplayMemberBinding="{Binding Path=Description}" Width="250" />
                                    <GridViewColumn Header="Running" Width="55" >
                                        <GridViewColumn.CellTemplate>
                                            <DataTemplate>
                                                <CheckBox IsChecked="{Binding Path=DesiredRunningState, Mode=TwoWay}" Checked="CheckBox_Checked" />
                                            </DataTemplate>
                                        </GridViewColumn.CellTemplate>
                                    </GridViewColumn>
                                </GridView.Columns>
                            </GridView>
                        </ListView.View>
                    </ListView>
                </Grid>
            </TabItem>
        </TabControl>

        <Grid Grid.Row="1" Margin="3" HorizontalAlignment="Right">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <Grid.Resources>
                <Style TargetType="Button">
                    <Setter Property="Width" Value="90" />
                </Style>
            </Grid.Resources>

            <Button x:Name="OKButton" 
                    Content="OK" 
                    Click="OKButton_Click" 
                    Grid.Column="0" />
            <Button x:Name="CancelButton" 
                    Content="Cancel" 
                    Click="CancelButton_Click" 
                    Grid.Column="1"
                    Margin="9,0" />
            <Button x:Name="ApplyButton" 
                    Content="Apply" 
                    Click="ApplyButton_Click" 
                    Grid.Column="2"
                    IsEnabled="False" />
        </Grid>
    </Grid>
</Window>
